package edu.xhu.homepage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import edu.xhu.homepage.mapper.BiliVideoDataMapper;
import edu.xhu.homepage.service.BiliVideoDataService;
import edu.xhu.model.video.pojos.BiliVideoData;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
@RequiredArgsConstructor
@Slf4j
public class BiliVideoDataServiceImpl extends ServiceImpl<BiliVideoDataMapper, BiliVideoData> implements BiliVideoDataService {

    @Override
    public void testInsert() {
//        BiliVideoData biliVideoData = new BiliVideoData();
//        biliVideoData.setVideoId(10L)
//                .setCoin((int) (Math.random() * 101))
//                .setLike((int) (Math.random() * 101))
//                .setCollect((int) (Math.random() * 101))
//                .setComment((int) (Math.random() * 101))
//                .setDanmu((int) (Math.random() * 101))
//                .setPlay((int) (Math.random() * 10000))
//                .setShare((int) (Math.random() * 101))
//                .setUpdateTime(null);
//
//        save(biliVideoData);
    }
}
